﻿using Helper.Controls;
using System;
using System.ComponentModel;
using System.Security.Permissions;
using System.Windows;
using Helper;

namespace Starehe
{
    /// <summary>
    /// Interaction logic for AboutUs.xaml
    /// </summary>
    [ObjectPermissionAttribute(SecurityAction.Demand, RequiredPermissionAccess = UserRoles.Guest)]
    public partial class About :CustomWindow, INotifyPropertyChanged
    {
        public About()
        {
            InitializeComponent();
            this.DataContext = Credits.TheCredits;
        }
        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }


        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void OnWeblink_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("http://www.almondtechnologies.kbo.co.ke");
            }
            catch { }
        }
        private void OnEmail_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("mailto:rufw91@live.com");
            }
            catch { }
        }

        private void OnLicenceLink_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("http://opensource.org/licenses/MIT");
            }
            catch { }
        }
        
    }
}
